#ifndef _OPEN_FILE_H_
#define _OPEN_FILE_H_

#include <iostream>
#include <string>
#include <stdio.h>

using namespace std;

class open_file
{
  public:
    open_file(const char *path);
    ~open_file();

  public:
    char *get_file_buffer();
    unsigned long get_file_size();
    
  private:
    FILE *fp;
    string m_path;
    char *m_buffer;
    unsigned long m_file_size;
};

#endif
